﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;

namespace TestWCSFSitemaps.Payments.Views
{
    public class PayYPresenter : Presenter<IPayYView>
    {
        private IPaymentsController _controller;
        public PayYPresenter([CreateNew] IPaymentsController controller)
        {
            _controller = controller;
            _controller.StartPageFlow();
        }

        public override void OnViewLoaded()
        {
            // TODO: Implement code that will be executed every time the view loads
        }

        public override void OnViewInitialized()
        {
            // TODO: Implement code that will be executed the first time the view loads
        }

        // TODO: Handle other view events and set state in the view
        public void GoPayX()
        {
            _controller.GoPayX();
        }

        public void GoPayZ()
        {
            _controller.GoPayZ();
        }
    }
}




